package com.candy.oop;

/**
 * @author donglin
 * @Title:
 * @类名: Test01
 * @date 2020/9/4
 */
public class Test01 {
    public static void main(String[] args) {
        Student stu0=new Student();
        stu0.sayHai();
        System.out.println(stu0.getTeacher());
        System.out.println("~~~~~~~~~~");
        System.out.println(stu0.getStuName());
        Teacher t1=new Teacher();
        t1.settName("tom");
       String tName= t1.gettName();
        System.out.println(tName);
        Cat.sayMiao();
        stu0.eatFood();




    }
}
